package com.athuiju.eduservice.controller;

import com.athuiju.commonutils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")

public class EduLoginController {

    //Loogin
    @PostMapping("login")
    public R login(){

        return R.ok().data("token","admin");
    }

    @PostMapping("logout")
    public R logout(){

        return R.ok().data("token","admin");
    }
    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2F2021%2Fedpic%2F0b%2F17%2F04%2F0b1704a9741f4e7ddd07939877dd3590_1.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643986896&t=6c51ae2d395ee85b9fe6c05ae9bb322c");
    }

}
